<?php

namespace App\Models\Subscribe;

use Illuminate\Database\Eloquent\Model;
use App\Models\User;

class Info extends Model
{
    protected $table = 'jxt_subscribe_info_list';

    public $timestamps = false;

    public function getSubscribeTimeAttribute()
    {
        return date('Y-m-d H:i:s', $this->attributes['subscribe_time']);
    }

    public function getEndTimeAttribute()
    {
        return date('Y-m-d H:i:s', $this->attributes['end_time']);
    }

    public function user()
    {
        return $this->hasOne(User\User::class,'id','user_id');
    }

    /*public function price()
    {
        return $this->hasOne(price::class,'id','subscribe_id');
    }*/


}
